<?php
/**
 * 管理员后台控制器
 * 
 * @version $Id: Order.php 282 2012-04-27 02:43:07Z linsir123 $
 */
class controllerOrder extends AdminController 
{
	/**
	 * 用户列表
	 */
	function actionIndex()
	{
		$show = 15;
		
		///
		$params = array();
		if (isset($_POST['uid'])) 
			$params['uid'] = intval($_POST['uid']);
			
		///
		$ma = MA::order();
		if ($count = $ma->getListCount($params)) {
			$page = $this->pagination($show, $count, 'order/index');
			$list = $ma->getList(($page-1)*$show, $show, $params);
			View::assign('list', $list);
		}
		
		///
		View::display('user/order_list');
		View::assignSet(array(
			'title' => '订单列表',
		));
	}
}
